DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
The SSE was the first modern stock exchange to open in China, with trading commencing in 1990. It has now grown to become the largest stock exchange in Asia and the third-largest in the world by market capitalization, which stood at RMB 50.6 trillion (US$7.8 trillion) as of September 2021. Stocks (both A-shares and B-shares), bonds, funds, and derivatives are traded on the exchange. The SEE has two trading boards, the Main Board and the Science and Technology Innovation Board, the latter more commonly known as the STAR Market. The Main Board mainly hosts large, well-established Chinese companies and lists both A-shares and B-shares.
How to Use Bitcoin?
n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”
Библиотека джависта | Java Spring Maven Hibernate from it